Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Showcase ambient mode / screen timeout handling #356

Conversation

zigavehovec
Copy link
Contributor

Description

Default samples go into ambient mode / screen timeout due to screen inactivity. Since the handling should be implemented on the app to app basis, this PR just adds an example and reference on how this can be handled.

Changes

  • Add getWindow().addFlags(FLAG_KEEP_SCREEN_ON); to MainActivity.java

Checklist

  • 🗒 CHANGELOG entry - No changelog as only example code was updated

@zigavehovec zigavehovec self-assigned this Dec 14, 2023
Copy link
Contributor

@strangesource strangesource left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Do you think this is worth a changelog entry? I am unsure.

@zigavehovec
Copy link
Contributor Author

zigavehovec commented Dec 14, 2023

Nice! Do you think this is worth a changelog entry? I am unsure.

I thought about it but I don't think so since it's not something that's going to be released.

@zigavehovec zigavehovec merged commit 71dff7a into development Dec 14, 2023
9 checks passed
@zigavehovec zigavehovec deleted the PRN-94/screensaver-covers-player-after-around-10-minutes branch December 14, 2023 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants